import axios from '@/utils/axios'

export const getPictureList = (params) => {
  return axios({
    url: '/mp/v1_0/user/images',
    method: 'GET',
    params
  })
}

export const putCollect = (id, collect) => {
  return axios({
    url: `/mp/v1_0/user/images/${id}`,
    method: 'PUT',
    data: {
      collect
    }
  })
}

export const delPicture = (id) => {
  return axios.delete(`/mp/v1_0/user/images/${id}`)
}
